README
The files in this compressed-folder will replicate the tables and figures in the manuscript:
"Intra-party competition, geographic responsiveness and 
incumbent deselection in closed-list PR"

The replication files are separated according to the different data sources used.
There are a total of 7 different data-sets:

1. "cj_1.RDS" for data on the conjoint experiment
2. "cj_2.RDS" for additional data from the conjoint survey
3. "district_greens.RDS" for electoral data at district level 
4. "nomination.RDS" for observational data on the competitiveness of list positions
5. "obs.RDS" for the observational data on nominations and geographic responsiveness
6. "GN250_p.shp" and other extensions needed to replicate Figure 14
7. "LANDKREISE_2009.shp" and other extensions needed to replicate Figure 14

For the first 5 data-sets a separate txt.-file with a description of the individual 
variables is provided. The names correspond to the respective data-file.

1. "data_description_cj_1.txt" for data "cj_1.RDS"
2. "data_description_cj_2.txt" for data "cj_2.RDS"
3. "data_description_district_greens.txt" for data "district_greens.RDS"
4. "data_description_nominations.txt" for data "nomination.RDS"
5. "data_description_obs.txt" for data "obs.RDS"

Next to these, there are 6 R-Script files that reproduce Figures and Tables.

1. "rep_figure2_3_6_7_8_9.R" to reproduce the figures named in the file name. This file
	needs the "cj_1.RDS" data-file. The corresponding log-file is "log_rep_figure2_3_6_7_8_9.txt"
2. "rep_figure_10_11.R" to reproduce the two figures named in the file name. This file 
	needs the "cj_2.RDS" data-file. The corresponding log-file is "log_rep_figure10_11.txt"
3. "rep_figure_12.R" to reproduce the figure named in the file name. This file 
	needs the "district_greens.dta" data.file. The corresponding log-file is "log_rep_figure12.txt"
4. "rep_figure_14.R" to reproduce the figure named in the file name. This file
	needs the "GN250_p.shp" and "LANDKREISE_2009.shp" (incl. the other file-extensions for both) data-files. 
	The corresponding log-file is "log_rep_figure14.txt"
5. "rep_table5.R" to reproduce the table named in the file name. This file 
	needs the "nomination.RDS" data-file. The corresponding log rile is "log_rep_table5.txt"
6. "rep_tables4_6-15_figures4_5_13.R" to reproduce the tables and figures named in the file name. This file
	needs the "obs.RDS" data-file. The corresponding log-file is "log_rep_tables4_6-15_figures_4_5_13.txt"


To provide evidence for a smooth execution of the R-scripts, log files have been produced using the 
sink() function in R. This function however only "logs" results printed to the R console. This entails,
that the log files for those R-Scripts that only produce Figures will be empty. The Scripts do run smoothly however.

The log-files are:
1. "log_rep_figure2_3_6_7_8_9.txt" 
2. "log_rep_figure10_11.txt"
3. "log_rep_figure12.txt"
4. "log_rep_figure14.txt"
5. "log_rep_table5.txt"
6. "log_rep_tables4_6-15_figures4_5_13.txt"

NB: Tables 1, 2 and 3 in the Appendix do not contain estimated results and merely report descriptive information 
on characteristics of the conjoint experiment and data availability for both the experimental and the observational
data approach. Hence, there are no R-Scripts to reproduce these tables. The same applies for Figure 1, which
also does not contain results and merely illustrates the set-up of staffing of nomination events.
